
package view.panels;

import controller.Controller;
import javax.swing.JPanel;
import model.observer.JGSObserver;

/**
 *
 * @author Marcos Garcia Ortega <a href="mailto:thiamath@gmail.com">&lt;thiamath@gmail.com&gt;</a>
 */
public abstract class JGSPanel extends JPanel implements JGSObserver{

	/**
	 * An ID to identify univocally a panel.
	 * PENDING maybe useless?
	 */
	private Integer ID;

	/** A reference to the controller. */
	protected Controller controller;

	/** A reference to the host of the panel. */
	protected JGSObserver father;

	/** A given title for the panel. */
	protected String title;

	public JGSPanel() {
	}

	public JGSPanel(String title){
		this.title = title;
	}

	public Integer getId() {
		return ID;
	}

	public void setId(Integer id) {
		this.ID = id;
	}
	
	public Controller getController() {
		return controller;
	}

	public void setController(Controller controller) {
		this.controller = controller;
	}

	public void setFather(JGSObserver father) {
		this.father = father;
	}

	public String getTitle() {
		return this.title;
	}

}
